<?php

namespace App\Models\Api;

use Illuminate\Database\Eloquent\Model;

class CollTown extends Model
{
    protected $table = 'coll_town';

    /**
     * The attributes that should be hidden for arrays.
     * 隐藏字段
     * @var array
     */
    protected $hidden = ['id', 'sort','en_name','longitude','latitude'];

    public function getNameAttribute($value)
    {
        return trim($value);
    }
}
